﻿<%@ Page Title="" Language="C#" enableEventValidation="true" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="DetailEnrolling.aspx.cs" Inherits="TuyenSinh.Admin.DetailEnrolling" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="JS/JSDetailEnronlling.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
     <div id="center-column">
          <div class="top-bar">
				<a href="javascript:void(0)" class="button" id="btnAddNew">ADD NEW </a>
                <a href="javascript:void(0)" class="button" id="btnEdit">EDIT</a>
				<h1>Quản lý thông tin tuyển sinh</h1>
			</div><br />
            
            <div class="select-bar" id="divBarSearch">
            <label>
            Tên ngành
		   <asp:TextBox ID="txtNameSerch" runat="server"></asp:TextBox>
		    </label>
            Khu vực
            <asp:DropDownList ID="ddlRegion" runat="server">
            </asp:DropDownList>
           
            Trường
            <asp:DropDownList ID="ddlSchool" runat="server">
            </asp:DropDownList>

            <asp:Button ID="btnSubmitCate" runat="server" Text="Search" OnClick="btnSubmit_Click" />
          </div> 
          
          <!-- Edit -->
          
          <div class="table" id="divListItem">
              <asp:GridView ID="GrvMajor" runat="server" CssClass="listing"
               AllowPaging="True" AllowSorting="True"
               AutoGenerateColumns="False" PageSize="30"
               OnRowDataBound="GrvMajor_OnRowDataBound">
               <Columns>
                    <asp:TemplateField HeaderText="Id"  Visible="True" >
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lbDetailEnrollingId"></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField  HeaderText="Tên ngành" >
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lbMajorName"></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                  
                   <asp:TemplateField HeaderText="Năm">
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lbYear"></asp:Label>
                       </ItemTemplate>
                   </asp:TemplateField>
                   
                    <asp:TemplateField HeaderText="Số lượng đăng kí">
                       <ItemTemplate>
                           <asp:TextBox Width="90" runat="server" ID="txtRegister"></asp:TextBox>
                       </ItemTemplate>
                   </asp:TemplateField>
                   
                   <asp:TemplateField HeaderText="Chỉ tiêu">
                       <ItemTemplate>
                           <asp:TextBox Width="90" runat="server" ID="txtTarget"></asp:TextBox>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Điểm trúng tuyển">
                       <ItemTemplate>
                           <asp:TextBox Width="60" runat="server" ID="txtScore"></asp:TextBox>
                       </ItemTemplate>
                   </asp:TemplateField>

                   <asp:TemplateField HeaderText="Tỉ lệ chọi">
                       <ItemTemplate>
                           1/<asp:TextBox Width="60" runat="server" ID="txtCompetitor"></asp:TextBox>
                       </ItemTemplate>
                   </asp:TemplateField>
                   <asp:TemplateField HeaderText="Sửa">
                       <ItemTemplate>
                           <asp:HyperLink runat="server" CssClass="aEditDetail"  ID="lnkEdit" Text="Sửa"></asp:HyperLink>
                       </ItemTemplate>
                   </asp:TemplateField>
                   
                    <asp:TemplateField HeaderText="Trạng thái">
                       <ItemTemplate>
                           <asp:Image runat="server" ID="ImgStatus"></asp:Image>
                       </ItemTemplate>
                   </asp:TemplateField>

               </Columns>                       
             </asp:GridView>
          </div>
         

          <!-- End Edit -->
          
          <!-- New -->
          <div class="table" style="display:none" id="divAddNew" >
            
          
                <table class="tabAdd"  cellpadding="0" cellspacing="0" width="560px">
                   
                    <tr>
                        <td class="title">Khu vực</td>
                        <td> <asp:DropDownList ID="ddlRegionAdd" runat="server">
                         </asp:DropDownList></td>
                    </tr>
                     <tr>
                         <td class="title">Trường</td>
                         <td> <asp:DropDownList ID="ddlSchoolAdd" runat="server">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="title">Tên ngành</td>
                        <td class="content">
                           <asp:DropDownList ID="ddlMajorAdd" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    

                     <tr>
                        <td class="title">Khối 1</td>
                        <td class="content"><asp:DropDownList ID="ddlFieldAdd1" runat="server">
                                
                        </asp:DropDownList> </td>
                    </tr>
                    
                     <tr>
                        <td class="title">Khối 2</td>
                        <td class="content"><asp:DropDownList ID="ddlFieldAdd2" runat="server">
                                
                        </asp:DropDownList> (Chỉ dành cho ngành nào tuyển sinh 2 khối) </td> 
                    </tr>

                    <tr>
                        <td class="title">Số lượng đăng kí</td>
                         <td class="content"><input type="text" id="txtRegister"/></td>
                    </tr>
                  <tr>
                        <td class="title">Chỉ tiêu</td>
                        <td class="content"><input type="text" id="txtTarget"/></td>
                    </tr>
                     <tr>
                        <td class="title">Điểm trúng tuyển</td>
                         <td class="content"><input type="text" id="txtScore"/></td>
                    </tr>                                            
                   <%-- <tr>
                        <td class="title">Tỉ lệ chọi</td>
                        <td class="content">1/<input type="text" id="txtCompetitor"/></td>
                    </tr> --%>                   
                     <tr>
                        <td class="title">Năm</td>
                         <td class="content"><input type="text" id="txtYear"/></td>
                    </tr>

                    
                                
                     
                    
                    <tr>
                       <td colspan="2">
                            <input type="button" id="btnSaveDetailEnrolling" value="Save" />
                       </td> 
                    </tr>
                </table>
                <asp:Label ID="spResult" runat="server"></asp:Label>
            </div>
          <!-- End New --> 

     </div>
</asp:Content>
